package main

import (
	"fmt"
	"time"
)

func main() {
	defer func() {
		fmt.Println("defer1")
	}()

	defer func() {
		fmt.Println("defer5")
	}()

	time.Sleep(2 * time.Second)

	panic("123")

	defer func() {
		fmt.Println("defer2")
	}()

	defer func() {
		fmt.Println("defer3")
	}()

}
